import 'package:flutter/material.dart';
import 'package:zrjz/comm/base/base.dart';
import 'package:zrjz/comm/constants/constants.dart';
import 'package:zrjz/comm/utils/size_config.dart';
import 'package:zrjz/comm/widget/my_load_image.dart';
import 'package:zrjz/generated/assets.dart';
import 'package:zrjz/modules/splash/splash_controller.dart';

class SplashPage extends BaseStatelessPage<SplashController> {
  SplashPage({super.key});

  @override
  SplashController createRawController() {
    return SplashController();
  }

  @override
  void initState() {}

  @override
  Widget buildWidget(BuildContext context) {
    SizeConfig().init(context);

    return Container(
        color: DarkThemeUtil.multiColors(ColorConstants.white, darkColor: ColorConstants.darkBlackBg),
        child: const Center(
          child: MyAssetImage(
            Assets.imagesSplashiCenterBlueLogo,
            width: 144,
            height: 144,
            fit: BoxFit.contain,
          ),
        ));
  }
}
